<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Value Change Event</title>
</h:head>
<h:body>
	<h3>Value Change Event Example</h3>
	<h:form>
		<h:panelGrid columns="3">

			<h:selectOneMenu id="name" value="#{mobileValueChangeListener.name}"
				onchange="submit()"
				valueChangeListener="#{mobileValueChangeListener.onSelectNames}">
				<f:selectItem itemValue="Nokia" itemLabel="Nokia" />
				<f:selectItem itemValue="Samsung" itemLabel="Samsung" />
				<f:selectItem itemValue="Blackberry" itemLabel="Blackberry" />
				<f:selectItem itemValue="Sony" itemLabel="Sony" />
				<f:selectItem itemValue="Mi3" itemLabel="Mi3" />

			</h:selectOneMenu>

		</h:panelGrid>
	</h:form>
	<br />
	<br />
	<h:outputText value="#{mobileValueChangeListener.result}"></h:outputText>
</h:body>
</html>